package com.woniuxy.enjoylife.controller;


import com.woniuxy.enjoylife.entity.Goods_type;
import com.woniuxy.enjoylife.service.Goods_typeService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author teamEnjoyLife75
 * @since 2021-01-23
 */
@RestController
@RequestMapping("/goodsType")
public class Goods_typeController {

    @Resource
    private Goods_typeService goodsTypeService;


    @RequestMapping("/selectGoodsType")
    public List<Goods_type> selectType(){ return goodsTypeService.list();}

}

